import os

print(os.path.join('D:\\temp', 'test'))

